#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>
#import <Photos/Photos.h>
#import <MobileCoreServices/MobileCoreServices.h>

#if __has_include(<PhotosUI/PHPicker.h>) || __has_include("PHPicker.h")
#define PHPicker
#import <PhotosUI/PHPicker.h>
#endif

typedef NS_ENUM(NSUInteger, PickerType) {
    FILEPICKER = 0, //文件选择
    IMAGEPICKER,    //图片选择
};

@interface FilePickerPlugin : NSObject<FlutterPlugin, FlutterStreamHandler, UIAdaptivePresentationControllerDelegate, UIDocumentPickerDelegate, UITabBarDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate, MPMediaPickerControllerDelegate
#ifdef PHPicker
, PHPickerViewControllerDelegate
#endif
>

// For testing only.
- (UIImagePickerController *)getImagePickerController;
- (UIViewController *)viewControllerWithWindow:(UIWindow *)window;
@end
